package pkg4funlex;

/**
 *
 * @author 4FunTeam
 */
public class Token {
   
    private String type;
    private String spelling;
    private int linenum;
//  private int symbol;

    public Token(String type, String name) {
        spelling = name;
        this.type = type;
        linenum = Scanner.getLine_index();
    }

    public int getLinenum() {
        return linenum;
    }

    public String getType() {
        return type;
    }

    public String getSpelling() {
        return spelling;
    }
}
